package application.core;

import javax.swing.JFrame;

import application.utils.Localizator;

public class Application extends JFrame{
	private static final long serialVersionUID = 1L;
	
	private final String Appication_Title = "Pusher Map Maker";
	
	static final int Width = 800;
	static final int Height = 600;
	
	Menu menu;
	EditorMapArea mapArea;
	EditorToolArea toolArea;
	Project project;
	
	public Application(){
		setTitle(Appication_Title);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setVisible(true);
		setLayout(null);
		setResizable(false);
		
		Localizator.onScreenCentralize(this, Width, Height);
		
		menu = new Menu(this);
		setJMenuBar(menu);
		
		mapArea = new EditorMapArea(200, Application.Height);
		mapArea.setLocation(0, 0);
		add(mapArea);
		
		toolArea = new EditorToolArea(Application.Width - 200, Application.Height);
		toolArea.setLocation(200, 0);
		add(toolArea);
		
		project = new Project(this);
	}
}
